<?php
error_reporting(0);
header("Content-Type: text/html; charset=utf-8"); 
$key=$_GET["vid"];
if($key==""){$key=$_GET["key"];};
$type=$_GET["type"];
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<style type="text/css">body,html,div{background-color:black;padding: 0;margin: 0;width:100%;height:100%;}</style>
</head>
<body>

<div id="video"><div id="a1"></div></div>
<script type="text/javascript" src="/ck/ckplayer.js" charset="utf-8"></script>
<script type="text/javascript">
	var isiPad = navigator.userAgent.match(/iPad|iPhone|Android|Linux|iPod/i) != null;
	if(isiPad){
		document.getElementById('a1').innerHTML = '<video src="http://video.1haza.com/acfun87.php?vid=<?php echo $key ?>&type=mp4" controls="controls" autoplay="autoplay" width="100%" height="100%"></video>';
	}else{
		//var flashvars={f:'/letvpancs/ck/m3u8.swf',a:'/letvpancs/api.php?vid='+vid,c:0,s:4,lv:0,p:1,v:100,b:1}
		//var flashvars={f:'/www.laosu_dy.com/letvmmsid.php?vid=<?php echo $key ?>',c:0,p:1}
		var flashvars={f:'http://video.1haza.com/acfun87.php?vid=<?php echo $key ?>&type=mp4'}
		var params={bgcolor:'#000',allowFullScreen:true,allowScriptAccess:'always',wmode:'transparent'};
		CKobject.embedSWF('/ck/ckplayer.swf','a1','ckplayer_a1','100%','100%',flashvars,params);
	}

</script>
<script type="text/javascript">var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://");document.write(unescape("%3Cspan id='cnzz_stat_icon_1257683708'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "s95.cnzz.com/z_stat.php%3Fid%3D1257683708' type='text/javascript'%3E%3C/script%3E"));</script>
</body>
</html>